#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../godGuang-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy godGuang-gateway "
cp ../godGuang-gateway/target/godGuang-gateway.jar ./godGuang/gateway/jar

echo "begin copy godGuang-auth "
cp ../godGuang-auth/target/godGuang-auth.jar ./godGuang/auth/jar

echo "begin copy godGuang-visual "
cp ../godGuang-visual/godGuang-monitor/target/godGuang-visual-monitor.jar  ./godGuang/visual/monitor/jar

echo "begin copy godGuang-modules-system "
cp ../godGuang-modules/godGuang-system/target/godGuang-modules-system.jar ./godGuang/modules/system/jar

echo "begin copy godGuang-modules-file "
cp ../godGuang-modules/godGuang-file/target/godGuang-modules-file.jar ./godGuang/modules/file/jar

echo "begin copy godGuang-modules-job "
cp ../godGuang-modules/godGuang-job/target/godGuang-modules-job.jar ./godGuang/modules/job/jar

echo "begin copy godGuang-modules-gen "
cp ../godGuang-modules/godGuang-gen/target/godGuang-modules-gen.jar ./godGuang/modules/gen/jar

